﻿using Dapper_Core.Basic;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;
using EditableAttribute = Dapper_Core.Basic.EditableAttribute;

namespace Dapper_Core.Table
{
    public class Workflow : BaseModel
    {
        /// <summary>
        /// Guid主键，主键必须加[Key]特性，若想对名为Id的列赋值必须加[Required]特性
        /// </summary>
        [Key]
        public string WorkflowId { get; set; }
        /// <summary>
        /// 流程模块编码
        /// </summary>
        public string WorkflowCode { get; set; }
        /// <summary>
        /// 工作流名称
        /// </summary>
        public string WorkflowName { get; set; }
        /// <summary>
        /// 工作流类型
        /// </summary>
        public int? WorkflowType { get; set; }
        /// <summary>
        /// 具体类型
        /// </summary>
        public int? SubWorkflowType { get; set; }
        /// <summary>
        /// 是否有效（0无效、1有效）
        /// </summary>
        public int? IsActive { get; set; }
        /// <summary>
        /// 流程节点详情
        /// </summary>
        [Editable(false)]
        public List<WorkflowNode> WorkflowNodeDetail { get; set; }
    }
}
